home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Technology Seed / Jan. '98 ATS.toast / FireWire 1.1 DDK DR1 / Source / FWIM / MakeFile < prev   
Encoding:
Makefile  |  1997-06-10  |  8.5 KB  |  291 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for FWIM sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #      <FW27>      6/5/97    EA        Added instructions to build PeleFWIM sample code.
  13. #      <FW26>     5/29/97    GG        Bumped version to 1.01a4.
  14. #      <FW25>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  15. #      <FW24>     4/29/97    GG        Bumped version to 1.0.1a2.
  16. #      <FW23>     4/10/97    GG        Bumped version to 1.0.1d1.
  17. #      <FW22>     3/27/97    GG        Bumped version to 1.0 GM.
  18. #      <FW21>     3/19/97    GG        Bumped version to 1.0b3.
  19. #      <FW20>     3/12/97    GG        Bumped version to 1.0b2.
  20. #      <FW19>     2/19/97    GG        Bumped version to 1.0a3.
  21. #      <FW18>     2/11/97    GG        Bumped copyright to 1997.
  22. #      <FW17>     2/11/97    GG        Bumped version to 1.0a2.
  23. #      <FW16>      2/4/97    GG        
  24. #      <FW15>      2/4/97    GG        Bumped version to 1.0d24.
  25. #      <FW14>     1/28/97    GG        Bumped version to 1.0d23.
  26. #      <FW13>     1/21/97    GG        Bumped version to 1.0d22.
  27. #      <FW12>      1/2/97    GG        Bumped Version to 1.0d21.
  28. #      <FW11>     12/6/96    GG        Bumped version to 1.0d19.
  29. #      <FW10>    11/27/96    ES        Removed links to DevNLib.
  30. #       <FW9>    11/26/96    ES        Removed -main FWIMInterface option from links.
  31. #       <FW8>    11/14/96    GG        Bumped version to 1.0d18.
  32. #       <FW7>    10/31/96    ES        Bumped version to 1.0d17.
  33. #       <FW6>    10/16/96    ES        Bumped version to 1.0d16.
  34. #       <FW5>     10/2/96    ES        Bumped version to 1.0d15.
  35. #       <FW4>     9/12/96    ES        Bumped version to 1.0d14.
  36. #       <FW3>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  37. #                                    ETO #20 and forward.
  38. #       <FW2>      8/7/96    ES        Filled in contains and written by fields.
  39. #       <FW1>      8/7/96    ES        first checked in
  40. #
  41. #
  42.  
  43. ################################################################################
  44. #
  45. # Define some directories
  46. #
  47.  
  48. FWIMRootDir                    =    :
  49.  
  50. FWSampleDir                    =    {FWIMRootDir}::
  51.  
  52. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  53. FWIMInterfacesDir            =    {FWIMRootDir}Interfaces:
  54.  
  55. SysLibrariesDir                =    {FWSampleDir}Libraries:
  56. FWIMLibrariesDir            =    {FWIMRootDir}Libraries:
  57.  
  58. LynxFWIMSourceDir            =    {FWIMRootDir}LynxFWIM:
  59. PeleFWIMSourceDir            =    {FWIMRootDir}PeleFWIM:
  60.  
  61. BuildResultsDir                =    {FWSampleDir}BuildResults:
  62. ObjectsDir                    =    {BuildResultsDir}Objects:
  63. ExtensionsDir                =    {BuildResultsDir}Extensions:
  64.  
  65. ################################################################################
  66. #
  67. # Define version info
  68. #
  69.  
  70. FWVersion                    =    1
  71. FWRevision                    =    0
  72. FWBuildStage                =    alpha
  73. FWBuildNumber                =    4
  74. FWShortVersionString        =    '"1.0.1a4"'
  75. FWLongVersionString            =    '"1.0.1a4, © 1995-97 Apple Computer, Inc."'
  76.  
  77.  
  78. ################################################################################
  79. #
  80. # Define stuff for 68K compilation
  81. #
  82.  
  83. C68KOptions                    =    -d ccompile                                    ∂
  84.                                 -b                                            ∂
  85.                                 -r                                            ∂
  86.                                 -i "{SysInterfaces}"                        ∂
  87.                                 -i "{CIncludes}"                            ∂
  88.                                 -mc68020
  89.  
  90. Asm68K                        =    Asm
  91.  
  92. C68K                        =    SC
  93.  
  94. Link68K                        =    Link
  95.  
  96.  
  97. ################################################################################
  98. #
  99. # Define stuff for PowerPC compilation
  100. #
  101.  
  102. MrCOptions                    =    -opt speed                                    ∂
  103.                                 -w 2,7,35                                    ∂
  104.                                 -d TRUE=1                                    ∂
  105.                                 -d FALSE=0                                    ∂
  106.                                 -i "{SysInterfacesDir}"                        ∂
  107.                                 -i "{FWIMInterfacesDir}"                    ∂
  108.                                 -i "{CIncludes}"
  109.  
  110. CPPCOptions                    =    {MrCOptions}
  111.  
  112. AsmPPC                        =    PPCAsm
  113.  
  114. AsmPPCOptions                =    -dialect PowerPC                            ∂
  115.                                 -o {Targ}
  116.  
  117. CPPC                        =    MrC
  118.  
  119. LinkPPC                        =    PPCLink
  120.  
  121.  
  122. ################################################################################
  123. #
  124. # Define stuff for rez
  125. #
  126.  
  127. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  128.                                 -d FWRevision={FWRevision}                    ∂
  129.                                 -d FWBuildStage={FWBuildStage}                ∂
  130.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  131.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  132.                                 -d FWLongVersionString={FWLongVersionString}
  133.  
  134.  
  135. ################################################################################
  136. #
  137. # Lynx FWIM
  138. #
  139.  
  140. "{ObjectsDir}LynxFWIM.c.o"    ƒ                                                ∂
  141.                             "{LynxFWIMSourceDir}LynxFWIM.c"                    ∂
  142.                             "{LynxFWIMSourceDir}LynxFWIM.h"
  143.     {CPPC}                                                                    ∂
  144.         "{LynxFWIMSourceDir}LynxFWIM.c"                                     ∂
  145.         -i "{LynxFWIMSourceDir}"                                            ∂
  146.         {CPPCOptions}                                                        ∂
  147.         -o {Targ}
  148.  
  149. "{ExtensionsDir}LynxFWIM"    ƒƒ                                                ∂
  150.                             "{ObjectsDir}LynxFWIM.c.o"                        ∂
  151.                             "{LynxFWIMSourceDir}LynxFWIM.exp"
  152.     {LinkPPC}                                                                ∂
  153.         -t 'ndrv'                                                            ∂
  154.         -c 'fw  '                                                            ∂
  155.         -xm sharedlibrary                                                    ∂
  156.         -w                                                                     ∂
  157.         -@export "{LynxFWIMSourceDir}LynxFWIM.exp"                            ∂
  158.         "{ObjectsDir}LynxFWIM.c.o"                                            ∂
  159.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  160.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  161.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  162.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  163.         "{SysLibrariesDir}PCILib"                                            ∂
  164.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  165.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  166.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  167.         -librename StdCLib.xcoff=StdCLib                                    ∂
  168.          -o {Targ}
  169.  
  170. "{ExtensionsDir}LynxFWIM"    ƒƒ                                                ∂
  171.                             "{ObjectsDir}LynxFWIM.c.o"                        ∂
  172.                             "{LynxFWIMSourceDir}LynxFWIM.exp"                ∂
  173.                             "{LynxFWIMSourceDir}LynxFWIM.r"                    ∂
  174.                             "{FWIMRootDir}MakeFile"
  175.     Rez                                                                        ∂
  176.         {RezOptions}                                                        ∂
  177.         "{LynxFWIMSourceDir}LynxFWIM.r"                                        ∂
  178.         -a                                                                    ∂
  179.         -o {Targ}
  180.  
  181.  
  182. LynxFWIM    ƒ                                                                ∂
  183.                         "{ExtensionsDir}LynxFWIM"
  184.  
  185.  
  186. ################################################################################
  187. #
  188. # Lynx Lite FWIM
  189. #
  190.  
  191. "{ObjectsDir}LynxLiteFWIM.c.o"    ƒ                                            ∂
  192.                             "{LynxFWIMSourceDir}LynxFWIM.c"                    ∂
  193.                             "{LynxFWIMSourceDir}LynxFWIM.h"
  194.     {CPPC}                                                                    ∂
  195.         "{LynxFWIMSourceDir}LynxFWIM.c"                                     ∂
  196.         -d LynxLiteFWIM                                                        ∂
  197.         -i "{LynxFWIMSourceDir}"                                            ∂
  198.         {CPPCOptions}                                                        ∂
  199.         -o {Targ}
  200.  
  201. "{ExtensionsDir}LynxLiteFWIM"    ƒƒ                                            ∂
  202.                             "{ObjectsDir}LynxLiteFWIM.c.o"                    ∂
  203.                             "{LynxFWIMSourceDir}LynxFWIM.exp"
  204.     {LinkPPC}                                                                ∂
  205.         -t 'ndrv'                                                            ∂
  206.         -c 'fw  '                                                            ∂
  207.         -xm sharedlibrary                                                    ∂
  208.         -w                                                                     ∂
  209.         -@export "{LynxFWIMSourceDir}LynxFWIM.exp"                            ∂
  210.         "{ObjectsDir}LynxLiteFWIM.c.o"                                        ∂
  211.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  212.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  213.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  214.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  215.         "{SysLibrariesDir}PCILib"                                            ∂
  216.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  217.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  218.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  219.         -librename StdCLib.xcoff=StdCLib                                    ∂
  220.          -o {Targ}
  221.  
  222. "{ExtensionsDir}LynxLiteFWIM"    ƒƒ                                            ∂
  223.                             "{ObjectsDir}LynxLiteFWIM.c.o"                    ∂
  224.                             "{LynxFWIMSourceDir}LynxFWIM.exp"                ∂
  225.                             "{LynxFWIMSourceDir}LynxFWIM.r"                    ∂
  226.                             "{FWIMRootDir}MakeFile"
  227.     Rez                                                                        ∂
  228.         {RezOptions}                                                        ∂
  229.         "{LynxFWIMSourceDir}LynxFWIM.r"                                        ∂
  230.         -a                                                                    ∂
  231.         -o {Targ}
  232.  
  233.  
  234. LynxLiteFWIM    ƒ                                                            ∂
  235.                         "{ExtensionsDir}LynxLiteFWIM"
  236.  
  237.  
  238. ################################################################################
  239. #
  240. # Pele FWIM
  241. #
  242.  
  243. "{ObjectsDir}PeleFWIM.c.o"    ƒ                                                ∂
  244.                             "{PeleFWIMSourceDir}PeleFWIM.c"                    ∂
  245.                             "{PeleFWIMSourceDir}PeleFWIM.h"
  246.     {CPPC}                                                                    ∂
  247.         "{PeleFWIMSourceDir}PeleFWIM.c"                                     ∂
  248.         -i "{PeleFWIMSourceDir}"                                            ∂
  249.         {CPPCOptions}                                                        ∂
  250.         -o {Targ}
  251.  
  252. "{ExtensionsDir}PeleFWIM"    ƒƒ                                                ∂
  253.                             "{ObjectsDir}PeleFWIM.c.o"                        ∂
  254.                             "{PeleFWIMSourceDir}PeleFWIM.exp"
  255.     {LinkPPC}                                                                ∂
  256.         -t 'ndrv'                                                            ∂
  257.         -c 'fw  '                                                            ∂
  258.         -xm sharedlibrary                                                    ∂
  259.         -w                                                                     ∂
  260.         -@export "{PeleFWIMSourceDir}PeleFWIM.exp"                            ∂
  261.         "{ObjectsDir}PeleFWIM.c.o"                                            ∂
  262.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  263.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  264.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  265.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  266.         "{SysLibrariesDir}PCILib"                                            ∂
  267.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  268.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  269.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  270.         -librename StdCLib.xcoff=StdCLib                                    ∂
  271.          -o {Targ}
  272.  
  273. "{ExtensionsDir}PeleFWIM"    ƒƒ                                                ∂
  274.                             "{ObjectsDir}PeleFWIM.c.o"                        ∂
  275.                             "{PeleFWIMSourceDir}PeleFWIM.exp"                ∂
  276.                             "{PeleFWIMSourceDir}PeleFWIM.r"                    ∂
  277.                             "{FWIMRootDir}MakeFile"
  278.     Rez                                                                        ∂
  279.         {RezOptions}                                                        ∂
  280.         "{PeleFWIMSourceDir}PeleFWIM.r"                                        ∂
  281.         -a                                                                    ∂
  282.         -o {Targ}
  283.  
  284.  
  285. PeleFWIM    ƒ                                                                ∂
  286.                         "{ExtensionsDir}PeleFWIM"
  287.  
  288. FWIM    ƒ                                                                    ∂
  289.                         LynxFWIM                                            ∂
  290.                         LynxLiteFWIM
  291.